<?PHP
if (!session_start()) { session_start(); };
/*if (!isset($_SESSION['lgnapproved'])) {
	die(header('Location: login.php'));
}*/

include("functions.php");
include("cnnxn.php");
connect();

if (isset($_GET['id'])) {

	$SQLdel='DELETE FROM av_players WHERE id='.$_GET['id'].';';
	//print $SQLdel;
	$sendit_del=mysqli_query($db,$SQLdel) or die(mysqli_error($db));
	mysqli_close($db);
	
	if (isset($_GET['did'])) {
		die(header("Location: av_players_viewall.php?did=".$_GET['did']));
	} else {
		die(header("Location: av_players_viewall.php"));
	}
	
}
?>